package com.fz.us.admin.company.service.impl;


import com.fz.us.admin.base.dao.BaseDao;
import com.fz.us.admin.base.service.impl.BaseServiceImpl;
import com.fz.us.admin.company.bean.FlowEnum;
import com.fz.us.admin.company.dao.TaskEntityDao;
import com.fz.us.admin.company.entity.TaskEntity;
import com.fz.us.admin.company.entity.User;
import com.fz.us.admin.company.service.TaskEntityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * Service实现类 - 
 * ============================================================================
 * 版权所有 2013
 * ----------------------------------------------------------------------------
 * 
 * @author 
 * 
 * @version 0.1 2011-6-13
 */

@Service
public class TaskEntityfServiceImpl extends BaseServiceImpl<TaskEntity, String> implements TaskEntityService {
    @Resource
    private TaskEntityDao taskEntityDao;

    @Override
    public BaseDao<TaskEntity, String> getBaseDao() {
        return taskEntityDao;
    }

    @Override
    public List<TaskEntity> getInfoByEntityName(String entityName) {
        return taskEntityDao.getInfoByEntityName(entityName);
    }

    @Override
    public TaskEntity getInfoByKeyId(String keyId) {
        return taskEntityDao.getInfoByKeyId(keyId);
    }

    @Override
    public List<TaskEntity> getInfoByReaders(String entityName, FlowEnum.ProcessState[] processState, String user_id) {
        return taskEntityDao.getInfoByReaders(entityName, processState, user_id);
    }

    @Override
    public List<TaskEntity> getInfoByDraft(FlowEnum.ProcessState processState, User user) {
        return taskEntityDao.getInfoByDraft(processState, user);
    }

    @Override
    public List<TaskEntity> getInfoByEditors( FlowEnum.ProcessState[] processState, String user_id) {
        return taskEntityDao.getInfoByEditors( processState, user_id);
    }
}